package cn.iocoder.yudao.module.lowcode.controller.admin.script.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Map;

@Schema(description = "管理后台 - Groovy 脚本测试 Request VO")
@Data
public class GroovyScriptTestReqVO {

    @Schema(description = "脚本内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "脚本内容不能为空")
    @Size(max = 65535, message = "脚本内容长度不能超过65535个字符")
    private String scriptContent;

    @Schema(description = "测试参数", example = "{\"param1\": \"value1\", \"param2\": 123}")
    private Map<String, Object> parameters;

}